import requset from './../utils/request.js'
/**
 * 班级列表
 * @returns 
 */
export function listClasses(params) {
    return requset({
        url: '/classes/list',
        method: 'GET',
        params,
        isToken:true,
    })
}
/**
 * 添加班级
 * @returns 
 */
export function addClasses(data) {
    return requset({
        url: '/classes',
        method: 'POST',
        data,
    })
}
/**
 * 修改班级信息
 * @returns 
 */
export function editClasses(data) {
    return requset({
        url: '/classes',
        method: 'PUT',
        data,
    })
}
/**
 * 删除班级信息
 * @returns 
 */
export function delClasses(classId) {
    return requset({
        url: `/classes/${classId}`,
        method: 'DELETE',
    })
}